package com.leokok.jts.learning.jts.core.awt;

import org.junit.Test;
import org.locationtech.jts.awt.ShapeWriter;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.io.ParseException;
import org.locationtech.jts.io.WKTReader;

import java.awt.*;

public class ShapeTest {

    @Test
    public void shapeWriter() throws ParseException {
        WKTReader wktReader = new WKTReader();
        Geometry geometry = wktReader.read("LINESTRING (2089426.5233462777 1180182.387733969, 2085646.6891757075 1195618.7333999649)");


        ShapeWriter shapeWriter = new ShapeWriter();
        Shape shape = shapeWriter.toShape(geometry);




    }
}
